package com.zhwmall.product.feign;


import com.zhwmall.common.entity.coupon.SpuBoundsEntity;
import com.zhwmall.common.to.SkuReductionTo;
import com.zhwmall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author:yanjizhw@163.com
 * @date:2020/9/17 13:51
 * 描述:
 * @since:1.0.0
 */
@FeignClient("zhwmall-coupon")
public interface CouponFeignService {

    @RequestMapping("/coupon/spubounds/save")
    R saveSpuBoundsEntity(@RequestBody SpuBoundsEntity spuBounds);

    @PostMapping("/coupon/skufullreduction/saveinfo")
    R saveSkuReduction(@RequestBody SkuReductionTo skuReductionTo);

//    @RequestMapping("/coupon/spubounds/list")
//    R list(@RequestParam Map<String, Object> params);
}
